<!DOCTYPE html>
<html>
<head>
<title>加密</title>
<#include "/header.html">
	<script src="${request.contextPath}/statics/js/modules/sys//bese64.js"></script>
</head>
<body>
<div class="panel panel-default">
	<form class="form-horizontal">
		<div class="form-group">
			<div class="col-sm-5">
				<input type="text" id="userId" class="form-control"  placeholder="用户Id"/>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-5">
				<input type="button" class="btn btn-primary" onclick="create()" value="确定"/>
			</div>
		</div>
	</form>
</div>
</body>
<script>
	function create() {
		var userId=$("#userId").val().trim();
		var base = new Base64();
		// console.log(encodeURI(userId));
		// var a=encodeURI(userId);
		// console.log(decodeURI(a));
		userId = base.encode(userId);
		var url="http://vtoolcps.lktsell.cn/?user_id="+userId;
		alert("链接地址："+"<a href='"+url+"' target='_blank'>"+url+"</a>");
	}
</script>
</html>